package cn.hacynn.nd.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Task implements Serializable {
    private String id;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件大小
     */
    private Double size;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 文件上传路径
     */
    private String filePath;

    /**
     * 是否已完成
     */
    private Boolean isFinished;

    @TableField( value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 是否被取消
     */
    private Boolean isCancelled;

    private Long userId;


    private static final long serialVersionUID = 1L;

}